package com.wyh.domain.po.g3po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("billingitems")//计费项目表
public class BillingItems {

    @ApiModelProperty(value = "计费项目表id",example = "1")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;//

    @ApiModelProperty(value = "父id",hidden = true)
    private int parentid;//      表

    @ApiModelProperty(value = "计费项目名称",example = "水费")
    private String name;//费项名称

    @ApiModelProperty(value = "计费性质，修改时不传入")
    private Integer type;//计费性质，0周期性计费、1三表类计费、2一次性计费  自己写

    @ApiModelProperty(value = "计算公式",example = "1,2,3,4")
    private String formula;//计算公式                表

    @ApiModelProperty(value = "费项分类id",example = "1")
    private int feeclassificationid;//费项分类id     表

    @ApiModelProperty(value = "统计类型",example = "1")
    private int statisticaltypeid;//统计类型         表

    @ApiModelProperty(value = "是否专项预存",example = "1")
    private int specialdeposit;//是否专项预存

    @ApiModelProperty(value = "冲减专项名称,修改时不传入",example = "1")
    private Integer specialName;//冲减专项名称，0水费、1电费、2气费、3物业费 4通用

    @ApiModelProperty(value = "状态",example = "1",hidden = true)
    private int state;//状态

    @ApiModelProperty(value = "保证金计费类型id",example ="1" )
    private Integer deposittypeid;//保证金计费类型id    表

    @ApiModelProperty(value = "三表计费类型id")
    private Integer threemetertypeid;//三表计费类型id，0水，1电，2气   自己写

    @ApiModelProperty(value = "操作人id",example = "1")
    private Integer userid;//操作人id                表

    @ApiModelProperty(value = "最后修改时间",example = "2024-05-29 14:30:51",hidden = true)
    private Timestamp updatetime;//最后修改时间

}
